words = ["apple", "banana", "cherry", "date"]
res = [len(x) for x in words]

print(f"{res}")